Isn’t it good to put a message to everyone who login to your server via SSH? Especially a legal message?
Login as root via SSH.
Enter the following command:
pico /etc/motd
Enter your message, save and exit.
After that, If any users login to SSH, they will see the message you have typed!
This is the message I have entered to all my servers I have, You can use it too.
ALERT! You are entering into a secured area! Your IP, Login Time, Username has been noted and has been sent to the server administrator!
This service is restricted to authorized users only. All activities on
this system are logged. Unauthorized access will be fully
investigated and reported to the appropriate law enforcement agencies.
When I have done this, I get this Output:
login as: root
root@tharunpkarun.com’s password:
Last login: Mon Jul 9 18:57:30 2012 from (Here its my IP)
ALERT! You are entering into a secured area! Your IP, Login Time,
Username has been noted and has been sent to the server administrator!
This service is restricted to authorized users only. All activities on
this system are logged. Unauthorized access will be fully
investigated and reported to the appropriate law enforcement agencies.
-bash-3.2#